class SnortBean {
  SnortBean({
    this.total,
    this.list,
    this.pageNum,
    this.pageSize,
    this.size,
    this.startRow,
    this.endRow,
    this.pages,
    this.prePage,
    this.nextPage,
    this.isFirstPage,
    this.isLastPage,
    this.hasPreviousPage,
    this.hasNextPage,
    this.navigatePages,
    this.navigatepageNums,
    this.navigateFirstPage,
    this.navigateLastPage,
  });

  SnortBean.fromJson(dynamic json) {
    total = json['total'];
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(SnortListBean.fromJson(v));
      });
    }
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
    size = json['size'];
    startRow = json['startRow'];
    endRow = json['endRow'];
    pages = json['pages'];
    prePage = json['prePage'];
    nextPage = json['nextPage'];
    isFirstPage = json['isFirstPage'];
    isLastPage = json['isLastPage'];
    hasPreviousPage = json['hasPreviousPage'];
    hasNextPage = json['hasNextPage'];
    navigatePages = json['navigatePages'];
    navigatepageNums = json['navigatepageNums'] != null
        ? json['navigatepageNums'].cast<num>()
        : [];
    navigateFirstPage = json['navigateFirstPage'];
    navigateLastPage = json['navigateLastPage'];
  }
  num? total;
  List<SnortListBean>? list;
  num? pageNum;
  num? pageSize;
  num? size;
  num? startRow;
  num? endRow;
  num? pages;
  num? prePage;
  num? nextPage;
  bool? isFirstPage;
  bool? isLastPage;
  bool? hasPreviousPage;
  bool? hasNextPage;
  num? navigatePages;
  List<num>? navigatepageNums;
  num? navigateFirstPage;
  num? navigateLastPage;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['total'] = total;
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    map['size'] = size;
    map['startRow'] = startRow;
    map['endRow'] = endRow;
    map['pages'] = pages;
    map['prePage'] = prePage;
    map['nextPage'] = nextPage;
    map['isFirstPage'] = isFirstPage;
    map['isLastPage'] = isLastPage;
    map['hasPreviousPage'] = hasPreviousPage;
    map['hasNextPage'] = hasNextPage;
    map['navigatePages'] = navigatePages;
    map['navigatepageNums'] = navigatepageNums;
    map['navigateFirstPage'] = navigateFirstPage;
    map['navigateLastPage'] = navigateLastPage;
    return map;
  }
}

class SnortListBean {
  SnortListBean({
    this.currentPage,
    this.pageSize,
    this.id,
    this.esId,
    this.sip,
    this.spt,
    this.dip,
    this.dpt,
    this.warnTime,
    this.sceneType,
  });

  SnortListBean.fromJson(dynamic json) {
    currentPage = json['currentPage'];
    pageSize = json['pageSize'];
    id = json['id'];
    esId = json['esId'];
    sip = json['sip'];
    spt = json['spt'];
    dip = json['dip'];
    dpt = json['dpt'];
    warnTime = json['warnTime'];
    sceneType = json['sceneType'];
  }
  num? currentPage;
  num? pageSize;
  num? id;
  String? esId;
  String? sip;
  String? spt;
  String? dip;
  String? dpt;
  String? warnTime;
  String? sceneType;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['currentPage'] = currentPage;
    map['pageSize'] = pageSize;
    map['id'] = id;
    map['esId'] = esId;
    map['sip'] = sip;
    map['spt'] = spt;
    map['dip'] = dip;
    map['dpt'] = dpt;
    map['warnTime'] = warnTime;
    map['sceneType'] = sceneType;
    return map;
  }
}
